<?php
  /*
    srcstr
      miscfunc.inc.php - program functions
      (c)2006-2012 Matthew Hipkin <http://www.matthewhipkin.co.uk>
  */
  function doSimpleXML($parent,$values) {
    $xml = "<?xml version=\"1.0\"?>\n";
    $xml .= "<$parent>\n";
    foreach($values as $key => $value) {
      $xml .= "  <$key>$value</$key>\n";
    }
    $xml .= "</$parent>\n";    
    return $xml;
  }
?>
